package Prototype_mode.office;

import java.io.IOException;
import java.util.Hashtable;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Manager {
    private Hashtable OfficeTable=new Hashtable();
    public Manager(){
        OfficeTable.put( "Off",new Office());
    }
    public void add(String key,Office office){
        OfficeTable.put(key,office);
    }
    public Office get(String key) throws IOException,ClassNotFoundException
    {
        Office clone=null;
        clone=((Office)OfficeTable.get(key)).deepClone();
        return clone;
    }
}
